﻿#if XBOX

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO.IsolatedStorage;
using Microsoft.Xna.Framework.GamerServices;

using Microsoft.Xna.Framework;
using System.IO;
namespace DARE
{
    public class CStorage : IStorage
    {
#region Fields

        private PlayerIndex m_index;

        #endregion

#region Property

        public bool IsSynchronize { get; private set; }

        public long TotalSpace
        {
            get { return 0; }
        }

        public long FreeSpace
        {
            get { return 0; }
        }

        #endregion

#region Event

        public event Action<IStorage> StorageReady;
        public event Action<IStorage> StorageFailed;

        #endregion

#region CTOR

        public CStorage()
            : this(PlayerIndex.One)
        {
        }


        public CStorage(PlayerIndex index)
        {
            IsSynchronize = false;
            this.m_index = index;
            Synchronize();
        }

    #endregion

#region Method

        public void Synchronize()
        {
            

        }

        public void CreateDirectory(string directory)
        {

        }

        public Stream CreateFile(string file)
        {

            return null;
        }

        public void DeleteDirectory(string directory)
        {

        }

        public void DeleteFile(string file)
        {

        }

        public bool DirectoryExists(string directory)
        {

            return false;
        }

        public void Dispose()
        {

        }

        public bool FileExists(string file)
        {

            return false;
        }

        public string[] GetDirectoryNames()
        {

            return null;
        }

        public string[] GetDirectoryNames(string searchPattern)
        {

            return null;
        }

        public string[] GetFileNames()
        {

            return null;
        }

        public string[] GetFileNames(string searchPattern)
        {

            return null;
        }

        public Stream OpenFile(string file, System.IO.FileMode fileMode)
        {

            return null;
        }

        public Stream OpenFile(string file, System.IO.FileMode fileMode, System.IO.FileAccess fileAccess)
        {

            return null;
        }

        public Stream OpenFile(string file, System.IO.FileMode fileMode, System.IO.FileAccess fileAccess, System.IO.FileShare fileShare)
        {

            return null;
        }

    #endregion
    }

}
#endif
